<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       // async function fu(){

       //}
       // console.log(fu())

     //  async function fu(){
      //  return 'hhh'
      // }
      // fu().then(res=>{
      //  console.log(res)
      // })

       async function fu(){
        try{
            await Promise.reject('出错了')
        }catch(e){
            console.log(e)
        }
       }
       fu()
    </script>
</body>
</html>